package net.wanho.study.dao;

import net.wanho.study.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2024-08-06 16:10
 * Description：<描述>
 */
public interface UserDao {

    /**
     * 插入用户
     */
    void insertUser(User user);

    void updateUser(User user);

    void deleteById(int id);

    User selectById(int id);

    List<User> selectAll();

    List<User> selectByUsername(String username);

    User selectById2(int id);

    User selectById3(int id);

    User selectByUsernameAndPassword(@Param("abc") String username,@Param("password") String password);

    User selectByUsernameAndPassword2(User user);

    List<User> selectByParams(User user);

    List<User> selectByParams2(User user);

    List<User> selectByParams3(User user);

    void updateUser2(User user);

    void insertUser2(User user);

    List<User> selectByIds(List<Integer> ids);

    void insertBatch(List<User> users);
}
